<?php
/* @var $this TrainerController */
/* @var $model Trainer */
/* @var $form CActiveForm */
$this->main_menu = MenuHelper::getArrayForMainMenu(false, false, true);
?>

<?php
$this->widget('bootstrap.widgets.TbTabs', array(
	'type'=>'tabs', // 'tabs' or 'pills'
	'tabs'=>array(
		array('label'=>'Alle Trainer', 'url'=>$this->createUrl('trainer/admin'), 'active'=>false),
                array('label'=>'NEU', 'url'=>$this->createUrl('trainer/create'), 'active'=>true),
//                array('label'=>'|', 'url'=>$this->createUrl('trainer/create'), 'itemOptions'=>array('class'=>'disabled')),
                array('label'=>'Stammdaten', 'url'=>$this->createUrl('trainer/create'), 'itemOptions'=>array('class'=>'disabled')),
//                array('label'=>'|', 'url'=>$this->createUrl('trainer/create'), 'itemOptions'=>array('class'=>'disabled')),
		
	),
));
?>

<?php 
   $salutationArray = ModelHelper::modelToArray(Salutation::model()->findAll());
   $trainer_status = ModelHelper::modelToArray(TrainerStatus::model()->findAll());
?>

<?php /** @var BootActiveForm $form */
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'horizontalForm',
	'type'=>'horizontal',
)); ?>
     
<fieldset>

    <?php echo $form->dropDownListRow($model, 'salutation', array_combine($salutationArray, $salutationArray)); ?>
    <?php echo $form->textFieldRow($model, 'title'); ?>
    <?php echo $form->textFieldRow($model, 'first_name'); ?>
    <?php echo $form->textFieldRow($model, 'last_name'); ?>
    <?php echo $form->textFieldRow($model, 'address'); ?>
    <?php echo $form->textFieldRow($model, 'postcode'); ?>
    <?php echo $form->textFieldRow($model, 'place'); ?>
    <?php echo $form->textFieldRow($model, 'tel'); ?>
    <?php echo $form->textFieldRow($model, 'mobile'); ?>
    <?php echo $form->textFieldRow($model, 'email'); ?>
    <?php echo $form->checkBoxRow($model, 'newsletter', array('disabled'=>false)); ?>
    <?php echo $form->textAreaRow($model, 'info', array('class'=>'span4', 'rows'=>5, 'height'=>'200')); ?>
    <?php echo $form->textFieldRow($model, 'recorded_by'); ?>
    <?php echo $form->textFieldRow($model, 'birthday'); ?>
    <?php echo $form->dropDownListRow($model, 'status', array_combine($trainer_status, $trainer_status)); ?>
    <?php echo $form->textFieldRow($model, 'social_security_nr'); ?>
    <?php echo $form->textAreaRow($model, 'subjects', array('class'=>'span4', 'rows'=>5, 'height'=>'200')); ?>

</fieldset>

     
<div class="form-actions">
    <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'type'=>'primary', 'label'=>'Speichern')); ?>
    <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'reset', 'label'=>'Zurücksetzen')); ?>
</div>
     
<?php $this->endWidget(); ?>
